import request from '@/plugins/request';

// 公众号列表
export function wechatConfiglist (data) {
    return request({
        url: '/v1/wechat/wechat/config-list',
        method: 'get',
        params: data
    });
}
// 公众号添加
export function wechataddConfig (data) {
    return request({
        url: '/v1/wechat/wechat/add-config',
        method: 'post',
        data
    });
}
/// 编辑
export function wechatupdateConfig (data) {
    return request({
        url: '/v1/wechat/wechat/update-config',
        method: 'post',
        data
    });
}
// 公众号配置-删除
export function wechatDelconfig (data) {
    return request({
        url: '/v1/wechat/wechat/del-config',
        method: 'post',
        data
    });
}
// 公众号下拉列表
export function wechatselectConfig (data) {
    return request({
        url: '/v1/wechat/wechat/select-config',
        method: 'get',
        params: data
    });
}
// 公众号素材库列表
export function mediaList (data) {
    return request({
        url: '/v1/wechat/wechat/media-list',
        method: 'get',
        params: data
    });
}
// 公众号素材库-回收站
export function wechatmediaRecycle (data) {
    return request({
        url: '/v1/wechat/wechat/media-recycle',
        method: 'get',
        params: data
    });
}
// 公众号素材库-素材编辑
export function wechatupdateMedia (data) {
    return request({
        url: '/v1/wechat/wechat/update-media',
        method: 'post',
        data
    });
}
// 公众号素材库-删除素材

export function wechatdelMedia (data) {
    return request({
        url: '/v1/wechat/wechat/del-media',
        method: 'post',
        data
    });
}
// 公众号素材库-添加/编辑分组

export function wechataddGroup (data) {
    return request({
        url: '/v1/wechat/wechat/add-group',
        method: 'post',
        data
    });
}
// 公众号素材库-删除分组
export function wechatdelGroup (data) {
    return request({
        url: '/v1/wechat/wechat/del-group',
        method: 'post',
        data
    });
}
// 公众号素材库-分组列表
export function wechatselectGroup (data) {
    return request({
        url: '/v1/wechat/wechat/select-group',
        method: 'get',
        params: data
    });
}
// 草稿箱-列表
export function draftarticleList (data) {
    return request({
        url: '/v1/wechat/wechat/draft-article-list',
        method: 'get',
        params: data
    });
}
// 草稿箱-文章详情
export function draftarticleInfo (data) {
    return request({
        url: '/v1/wechat/wechat/draft-article-info',
        method: 'get',
        params: data
    });
}
// 草稿箱-发布文章
export function wechatpushArticle (data) {
    return request({
        url: '/v1/wechat/wechat/push-article',
        method: 'post',
        data
    });
}
// 草稿箱-添加本地草稿(新建图文消息)
export function wechatadddraftArticle (data) {
    return request({
        url: '/v1/wechat/wechat/add-draft-article',
        method: 'post',
        data
    });
}
// 草稿箱-更新本地草稿
export function wechatupdatedraftArticle (data) {
    return request({
        url: '/v1/wechat/wechat/update-draft-article',
        method: 'post',
        data
    });
}
// 草稿箱-删除草稿
export function wechatdeldraftArticle (data) {
    return request({
        url: '/v1/wechat/wechat/del-draft-article',
        method: 'post',
        data
    });
}
// 自定义菜单-默认菜单
export function wechatdefaultmenuList (data) {
    return request({
        url: '/v1/wechat/wechat/default-menu-list',
        method: 'get',
        params: data
    });
}
// 自定义菜单-自定义列表
export function wechatmenuList (data) {
    return request({
        url: '/v1/wechat/wechat/menu-list',
        method: 'get',
        params: data
    });
}
// 自定义菜单-发布菜单
export function wechatpushMenu (data) {
    return request({
        url: '/v1/wechat/wechat/push-menu',
        method: 'post',
        data
    });
}
// 自定义菜单-添加菜单
export function wechataddMenu (data) {
    return request({
        url: '/v1/wechat/wechat/add-menu',
        method: 'post',
        data
    });
}
// 自定义菜单-删除菜单
export function wechatdelMenu (data) {
    return request({
        url: '/v1/wechat/wechat/del-menu',
        method: 'post',
        data
    });
}
